/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.contract.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * 市价全平接口
 *
 * @since 2022-08-11 10:08:11
 */
@Data
@ApiModel(value = "ContractOrderCloseMarketDTO")
public class ContractOrderCloseMarketDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 客户自定义订单id
     */
    @ApiModelProperty(value = "客户自定义订单id")
    @Length(min = 1, max = 200, message = "数据异常，客户自定义订单id长度应在1-200之间")
    private String clientOrderId;

    /**
     * 仓位id
     */
    @ApiModelProperty(value = "仓位id，平仓时不为空")
    private Long positionId;

    /**
     * 币对名称
     */
    @ApiModelProperty(value = "币对名称")
    private String symbolName;

    /**
     * 仓位模式（0逐仓、1全仓）
     */
    @ApiModelProperty(value = "仓位模式（0逐仓、1全仓）")
    private String positionMode;

    /**
     * 方向（0开多、1开空）
     */
    @ApiModelProperty(value = "方向（0开多、1开空）")
    private String side;
}
